package PokerGame;
import java.util.*;

public class Card {
	public ArrayList<String> deck;
	private String[] huaSe = {"方块","梅花","红心","黑桃"};
	private String[] numbers = {"A","2","3","4","5","6","7","8","9","10","J","Q","K"};
	
	public Card(){
		deck=creatDeck(huaSe,numbers);
		shuffle(deck);
	}
	

	private ArrayList<String> creatDeck(String[] hua,String[] num){
		ArrayList<String> deck = new ArrayList<String>();
		for(int i =0;i<hua.length;i++){
			for(int j =0;j<num.length;j++){
				deck.add(hua[i]+num[j]);
			}
		}
		
		return deck;
	}

	private void shuffle(ArrayList<String> deck) {
		Collections.shuffle(deck);
	}

	
}
